package cn.wolfcode.tieba.service;

import cn.wolfcode.tieba.domain.Comment;
import cn.wolfcode.tieba.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * @author 王金龙
 * @date 2021/2/6 23:21
 */
public interface ICommentService extends IService<Comment> {

    List<Comment> listByTieziId(Long id);

    void saveComment(Long id, String content, User user);

    void saveComments(Long id, Long commentId, String content, User user);

    List<Comment> getReplyId(Long replyId, Long commentId);
}
